package com.key;

import java.io.File;

import com.key.util.TimeCaculate;

import android.app.Activity;
import android.app.AlarmManager;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class KeyquietlyActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       setContentView(R.layout.main);
       try {
			File filePathA = new File(
					android.os.Environment.getExternalStorageDirectory()
							+ "/keyquiet");
			if (!filePathA.exists()) {
				filePathA.mkdirs();
			}
			File file = new File(
					android.os.Environment.getExternalStorageDirectory()
							+ "/keyquiet/settings.txt");
			if (!file.exists()) {
				file.createNewFile();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
      startService(new Intent(this,KeyService.class));
     finish();
    }
}